﻿using QFramework;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace projectgame
{

    public class Global
    {
        public static BindableProperty<int> Days = new BindableProperty<int>(1);//BindableProperty<T> 是一个泛型类，通过封装数据字段并绑定事件监听，实现数据变更时自动触发事件
        public static BindableProperty<int> FruitCount = new BindableProperty<int>(0);//结果数量
        public static BindableProperty<int> FruitSeedCount = new BindableProperty<int>(5);                                                                              //
        public static BindableProperty<int> RadishCount = new BindableProperty<int>(0);//结果数量
        public static BindableProperty<int> ChineseCabbageCount = new BindableProperty<int>(0);//结果数量
        public static BindableProperty<int> RadishSeedCount = new BindableProperty<int>(5);
        public static BindableProperty<int> ChineseCabbageSeedCount = new BindableProperty<int>(5);
        public static BindableProperty<ITool> CurrentTool = new BindableProperty<ITool>(Constant.ToolHand);//‌当前工具名


        public static EasyEvent<IPlant> OnPlantHarvest = new EasyEvent<IPlant>();//植物收割
       


        public static Player Player = null;
        public static ToolController Mouse =null;
    }

}
